gl renderer: Ignore rounded clip that only increase the clip
authorTimm Bäder <mail@baedert.org>
Fri, 3 Jul 2020 04:41:29 +0000 (06:41 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 17 Jul 2020 03:49:11 +0000 (05:49 +0200)
commit34008e6aab564752494e14d186cf4d7b1d930aa6
treef69dd2f00310847c536214a9035cbdef5a0069b6
parentd6b3ac850d5a9fc91070508a9acfa0b17b3b015e
gl renderer: Ignore rounded clip that only increase the clip

This fixes the widget factory rendering too much.

In the widget-factory, we generally have a pretty small update area (two
spinners and a progressbar). We take the extents of that as a update
area and inital clip.

However, the first clip node we see is from the toplevel window, which
essentially increases the clip again to almost the entire window.

Fix that by ignoring such cases.
gsk/gl/gskglrenderer.c